|
|
|
|
|
|
|
Figure B.11.
A pop-up definition. |
|
|
|
|
|
|
|
|
Next, select the Contents button to display the Table of Contents topic. Select any of the underlined items to jump to their topic. When you're in the topic, select the Back or Contents button and return to the original screen. |
|
|
|
|
|
|
|
|
Using Code to Set the Help File Project Option and the HelpContextID Property |
|
|
|
|
|
|
|
|
In the previous exercise, you attached the help filename by entering it in the Project Options section and setting the HelpContextID in each control's properties. You can also set these values at runtime. Just enter the following code in the Form_Load procedure to open the help file and set help context IDs: |
|
|
|
|
|
|
|
|
Sub Form_Load ()
'assign the help file
App.HelpFile = "C:\TYSDBVB5\SOURCE\APPXB\HELP\PROJECT.HLP"
'set the help context id for a control
txtName.HelpContextID = 1
End |
|
|
|
|
|
|
|
|
You need to set a HelpContextID for each control to which you want to add help. Be forewarned that this can be a very time-consuming chore if you have a large number of controls or a large number of forms in your Visual Basic database application. |
|
|
|
|
|